package com.example.fresheveryday.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.fresheveryday.po.Productorder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
public interface ProductorderService extends IService<Productorder> {
    String createOrder(Productorder productorder,int id[]);
    public Productorder getOrdersByOrdersId(String ordersId);
    public List<Productorder> getOrdersList(String userId);

    IPage<Productorder> getOrderByConditions(IPage<Productorder> page, @Param("ew") Wrapper wrapper);
    int countByConditions(@Param("ew") Wrapper wrapper);
}
